package com.example.powerJob;

import groovy.util.logging.Slf4j;
import org.springframework.stereotype.Component;
import tech.powerjob.worker.core.processor.ProcessResult;
import tech.powerjob.worker.core.processor.TaskContext;
import tech.powerjob.worker.core.processor.sdk.BasicProcessor;

@lombok.extern.slf4j.Slf4j
@Slf4j
@Component
public class PowerTestJob implements BasicProcessor {

    @Override
    public ProcessResult process(TaskContext taskContext) throws Exception {

        log.info("任务执行成功，参数：{}",taskContext.getJobParams());
        return new ProcessResult(true,"success");
    }
}
